﻿@model Beeldbankmvc.Models.CityModel

@using Beeldbankmvc.Code
@{
    ViewBag.Title = "Nieuwe Plaats";
    Layout = "~/Views/Shared/Layout.cshtml";
    Html.RenderAction("AdminMenu", "Miscellaneous");
}

<h2>@ViewBag.Title</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/ckeditor/ckeditor.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend style="display: none;">CityModel</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Plaats)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Plaats)
            @Html.ValidationMessageFor(model => model.Plaats)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Provincie)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Provincie)
            @Html.ValidationMessageFor(model => model.Provincie)
        </div>

        <div>
            <input type="submit" value="Opslaan" /> |
            <a href="@Url.Action("Index", "City")"> <img alt="Terug naar het overzicht" title="Terug naar het overzicht" src="@AppHelper.getContent("~/Content/images/list.jpg")" /> Terug naar het overzicht</a>
        </div>
    </fieldset>
}
